package com.hexseek.libretvcloud.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhougb9
 * @version 1.0.0
 * @description TODO
 * @date 2025/5/15 15:48
 * @title RestTemplateConfig
 */


@Configuration
public class RestTemplateConfig {
    private final RestTemplateBuilder builder;

    public RestTemplateConfig(RestTemplateBuilder builder) {
        this.builder = builder;
    }

    @Bean
    public RestTemplate restTemplate() {
        return builder.build();
    }




}
